package com.lifa.dao;

import com.lifa.entity.Chanpin;
import com.lifa.entity.Huiyuan;
import com.lifa.entity.Jicun;
import com.lifa.entity.SPquchushijian;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 5.商品寄存
 */
public interface JicunDao {
    public List<Jicun> query();

    /**
     * 模糊查询根据id，name
     * @return
     */
    public List<Jicun> queryByName(Map<String, Object> map);
    public List<Jicun> queryPage(@Param("name") String name, @Param("offset") int offset, @Param("limit") int limit) ;
    public int getTotalCount(@Param("name") String name);

    /**
     * 获取到会员id
     * @param huiyuan_Id
     * @return
     */
    public Jicun queryId(int huiyuan_Id);
    /**
     * 根据会员id修改信息
     * @param jicun
     * @return
     */
    public int update(Jicun jicun);

    /**
     * 添加商品取出记录
     * @param
     * @return
     */
    public int insert(SPquchushijian sPquchushijian);

    /**
     * 查询会员信息
     * @return
     */
    public List<Huiyuan> cha(int huiyuan_Id);

    /**
     * 查询商品信息
     * @return
     */
    public List<Chanpin> chax();

    /**
     * 添加寄存信息
     * @param jicun
     * @return
     */
    public int add(Jicun jicun);

}
